package com.gmail.fanvaron.Listener;

import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;

import com.gmail.fanvaron.Main.MarvMonsterPack;

public class PlayerListener implements Listener {

    public MarvMonsterPack plugin;

    public PlayerListener(MarvMonsterPack instance) {
        plugin = instance;
    }

    @EventHandler(priority = EventPriority.HIGHEST)
    public void onPlayerJoin(PlayerJoinEvent event) {
        event.getPlayer().sendMessage(plugin.getConfig().getString("message"));
    }

}
